export function findFirstPath(sideBarMenu) {
  const findMenu = JSON.parse(JSON.stringify(sideBarMenu));
  if (findMenu.length) {
    const firstMenu = findMenu[0];
    if (firstMenu.children && firstMenu.children.length && !firstMenu.element) {
      console.log(firstMenu);
      return firstMenu.children[0].path;
    } else {
      return firstMenu.path;
    }
  }
}
